package com.hzeport.bgs22emduty.dto.messgeDistribute;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.hzeport.bgs22emduty.vo.file.FileVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class ScreenMessageDistributeSaveDTO {

    private String id;
    /**
     * $column.comments
     */
    @ApiModelProperty(value ="标题", required = true)
    @NotBlank(message = "标题不能为空")
    @TableField(value ="TITLE")
    @JsonProperty(value = "title")
    private String title;



    /**
     * $column.comments
     */
    @ApiModelProperty(value ="正文", required = true)
    @NotBlank(message = "正文不能为空")
    @JsonProperty(value = "mainBody")
    private String mainBody;

    @ApiModelProperty(value="附件名")
    private List<FileVO> files;

    @ApiModelProperty(value="关区GUID，源自H4A")
    @TableField(value ="CUSTOM_ID")
    @JsonProperty(value = "customId")
    private List<String> customId;

    /**
     * $column.comments
     */
    @ApiModelProperty(value="关区中文名称")
    @TableField(value ="CUSTOM_NAME")
    @JsonProperty(value = "customName")
    private List<String> customName;


    /**
     * $column.comments
     */
    @ApiModelProperty(value="$column.comments")
    @TableField(value ="EXPERIENCE_TIME")
    @JsonProperty(value = "experienceTime")
    private LocalDate experienceTime;
}
